package com.eva.learn.other;

import java.lang.reflect.Field;

/**
 * Created by evain on 15/12/26.
 */
public class Test13 {
	public static <T extends Test11> int test(Class<T> tClass){
		try {
			Field field = tClass.getField("type");
			Integer integer = (Integer)field.get(tClass);
			System.out.println(integer);
		} catch (NoSuchFieldException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		}
		return 0;
	}

	public static void main(String[] args) {
		System.out.print(Test13.test(Test12.class));
	}

}
